import { Post, Get, Patch, Put, Delete, Download, ax } from './http';
import { type } from './interface';
import qs from 'qs';
export namespace Delivery {
    /**
     * 获取所有片区
     */
    export var GetAreas = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetAreas`, {});
    };
    /**
     * 获取所有机型
     */
    export var GetModels = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetModels`, {});
    };
    /**
     * 获取所有仓库
     */
    export var GetStocks = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetStocks`, {});
    };
    /**
     * 获取机型发货量
     */
    export var GetDeliveryByModel = (query: type.delivery_GetDeliveryByModelReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetDeliveryByModel?${qs.stringify(query)}`, {});
    };
    /**
     * 获取片区发货量
     */
    export var GetDeliveryByArea = (query: type.delivery_GetDeliveryByAreaReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetDeliveryByArea?${qs.stringify(query)}`, {});
    };
    /**
     * 近十日发货量
     */
    export var GetDeliveryByTenDays = (query: type.delivery_GetDeliveryByTenDaysReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetDeliveryByTenDays?${qs.stringify(query)}`, {});
    };
    /**
     * 近十月发货量
     */
    export var GetDeliveryByTenMonths = (query: type.delivery_GetDeliveryByTenMonthsReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Delivery/GetDeliveryByTenMonths?${qs.stringify(query)}`, {});
    };
    /**
     * 获取发货列表
     */
    export var GetList = (query: type.delivery_GetListReq): Promise<type.Int64Int64FhmxListTuple> => {
        return Get(`/api/Delivery/GetList?${qs.stringify(query)}`, {});
    };
    /**
     * 获取整机发货量
     */
    export var GetDelivery = (query: type.delivery_GetDeliveryReq): Promise<type.GetChildsRspListResponse> => {
        return Get(`/api/Delivery/GetDelivery?${qs.stringify(query)}`, {});
    };
}
